package com.lqd.demo.springboot.orm.mybatis.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lqd.demo.springboot.orm.mybatis.bean.UserLoginLog;
import com.lqd.demo.springboot.orm.mybatis.dao.UserLoginLogMapper;

@Service
public class UserLoginLogMyBatisService {

	@Autowired
	private UserLoginLogMapper userLoginLogMapper;
	
	public List<UserLoginLog> getByName(String name){
		
		return userLoginLogMapper.getByName(name);
	}
	
	public void save (UserLoginLog userLoginLog){
		userLoginLogMapper.save(userLoginLog);
	}
}
